<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts-config PUBLIC
		"-//Apache Software Foundation//DTD Struts Configuration 1.2//EN"
		"http://struts.apache.org/dtds/struts-config_1_2.dtd">
<struts-config>
	<form-beans>
<#list m.classes as c>
		<form-bean name="${c.name?uncap_first}Form" type="${c.module.totalPackage}.${c.module.moduleName}.form.${c.name}Form"/>
</#list>
	</form-beans>
	
	<action-mappings>
		<action path="/console/${m.moduleName}/index" parameter="method" scope="request" validate="false" type="org.springframework.web.struts.DelegatingActionProxy">
			<forward name="index" path="/WEB-INF/modules/${m.moduleName}/index.jsp"/>
		</action>

<#list m.classes as c>
		<action path="/console/${c.module.moduleName}/${c.name?uncap_first}" name="${c.name?uncap_first}Form" parameter="method" scope="request" validate="false" type="org.springframework.web.struts.DelegatingActionProxy">
			<forward name="list" path="/WEB-INF/modules/${c.module.moduleName}/${c.name?uncap_first}-list.jsp"/>
			<forward name="edit" path="/WEB-INF/modules/${c.module.moduleName}/${c.name?uncap_first}-edit.jsp"/>
			<forward name="view" path="/WEB-INF/modules/${c.module.moduleName}/${c.name?uncap_first}-view.jsp"/>
			<forward name="success" path="/console/${c.module.moduleName}/${c.name?uncap_first}.do" redirect="true"/>
		</action>
</#list>
	</action-mappings>
</struts-config>